package routers

import (
	beego "github.com/beego/beego/v2/server/web"
	"video/controllers"
)

func init() {
	beego.Router("/", &controllers.MainController{})

	beego.Router("/add", &controllers.VideoControllers{}, "post:Add")

	beego.Router("/del", &controllers.VideoControllers{}, "get:Del")

	beego.Router("/list", &controllers.VideoControllers{}, "get:List")

	beego.Router("/page", &controllers.VideoControllers{}, "get:Page")

	beego.Router("/show", &controllers.VideoControllers{}, "get:Show")

	beego.Router("/page1", &controllers.VideoControllers{}, "get:Page1")

	beego.Router("/upload", &controllers.VideoControllers{}, "post:Upload")

	beego.Router("/login", &controllers.UserControllers{}, "post:Login")

	beego.Router("/modification", &controllers.VideoControllers{}, "post:Modification") //修改
}
